#ifndef _REBOT_H
#define _REBOT_H

#include "Character/Player.h"
#include "Common/CharacterDefine.h"
class  CRebot: public Player
{
public:
	enum {
		REBOT_START_AI = 100,
	};
public:
	CRebot();
	virtual ~CRebot();
	bool Init(uint32_t rebotID, CharIDType cid);
	bool Init(CharacterDBInfo &PlayerInfo, ENTER_ACCOUNT* account);
	virtual bool UnInit();
	virtual void Update(uint64_t tick);
	virtual void OnDead(uint64_t killerCid);
	virtual void OnTimer(uint32_t nTimerID);
	bool InitAI();
	//virtual void GetVisibleDataToClient(CreaturesCreateData& cvData);

	bool EnterScene(uint32_t sceneId, Point3<float>& enterPos,STransParam &transParam);
	bool LeaveScene();
	bool	 IsFriendSide(Creature* pCreature);
public:
	virtual void AddSeeNewCreature(Creature* pCreature);
private:
	CharIDType m_nRebotID;
	uint64_t m_startAiTime;
};

#endif
